color-scale: remove Adwaita GtkColorScale trough hack
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 14 Feb 2012 19:02:43 +0000 (14:02 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Feb 2012 21:37:05 +0000 (16:37 -0500)
commitbef12c003c5570d40107cf57e22c78355c29983f
treec8b34529ad3b03f83f3202db8b2d88551e7f40bf
parent19da38b8117ced88999f20af74a270c8afa163e6
color-scale: remove Adwaita GtkColorScale trough hack

Instead of special-casing Adwaita, apply the half-width logic for themes
that have a scale slider with vertical proportions.
Also, simplify the rendering code a bit by factoring out the trough
sizing logic.
gtk/gtkcolorscale.c